/* 
 * Copyright (C), 2016-2020, 厦门盈欣宝金融信息服务有限公司
 * Project Name :boot-parent
 * File Name: org.easytouseit.bootrunner
 * Encoding UTF-8 
 * Version: 1.0 
 * Date: 2018-07-31 15:52
 * History:  
 * 1. Date: 2018-07-31
 *    Author: guojm 
 *    Modification: 新建
 * 2. ...
 */
package org.easytouseit.bootrunner;

import lombok.extern.slf4j.Slf4j;
import org.easytouseit.bootrunner.service.CommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @author guojm
 * @version V1.0
 * @date 2018-07-31
 */
@Slf4j
@Component
@Order(2)
public class CustomAppliactionRunner implements ApplicationRunner{
    @Autowired
    private CommonService commonService;
    @Override
    public void run(ApplicationArguments args) throws Exception {
        log.info("===========开始执行数据初始化到缓存操作===========");
        log.info(commonService.getBlogName()+"作者为：");
        log.info("===========结束执行数据初始化到缓存操作===========");
    }
}
